//
// Created by francklinson on 2021/10/23 AT 9:58.
//
#include <iostream>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <algorithm>
#include <functional>
#include <climits>
#include <string>

//using namespace std;
class Solution {
public:
    std::vector<int> constructRectangle(int area) {
        int start = (int) std::sqrt(area);
        while (area % start) {
            --start;
        }
        return {area / start, start};
    }
};

int main() {
    Solution solution;
    std::vector<int> ans = solution.constructRectangle(6);
    for (const auto &x: ans) std::cout << x << std::endl;
    return 0;
}

